package com.ethink.warehouse.api.request;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 仓库主仓 新增请求对象
 *
 * @author default
 * @date 2022-11-01
 */
@Data
public class WarehouseAddRequest {

    @Schema(description ="主仓编号")
    @NotNull(message = "主仓编号不能为空")
    private String warehouseCode;

    @Schema(description ="主仓名称")
    @NotNull(message = "主仓名称不能为空")
    private String warehouseName;

    @Schema(description ="枚举 状态:1-启用(open)|2-关闭(close)")
    private Integer warehouseStatus;

    @Schema(description ="枚举 所属业务:1-跨境(b1)|2-大贸(b2)")
    @NotNull(message = "所属业务不能为空")
    private Integer bizType;

    @Schema(description ="是否境外")
    private Boolean isOutbound;

    @Schema(description ="是否虚拟")
    private Boolean isVirtual;

    @Schema(description ="国家编码")
    private String countryCode;

    @Schema(description ="省编码")
    private String provinceCode;

    @Schema(description ="城市编码")
    private String cityCode;

    @Schema(description ="地区编码")
    private String areaCode;

    @Schema(description ="全地区")
    private String fullAddress;

    @Schema(description ="仓库地址")
    private String address;

    @Schema(description ="负责人")
    private String contactsName;

    @Schema(description ="负责人电话")
    private String contactsPhone;

    @Schema(description ="备注信息")
    private String remark;

    @Schema(description ="账册列表")
    @NotNull(message = "账册列表不能为空")
    private List<WarehouseAddBookRequest> warehouseBookList;


}
